import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/login",
    name: "login",
    component: () => import("@/pages/login/index.vue"),
  },
  {
    path: "/",
    name: "home",
    component: () => import("@/pages/home/index.vue"),
    children: [
      {
        path: "/planHome",
        name: "planHome",
        component: () => import("@/pages/exam/home.vue"),
      },
      {
        path: "/school",
        name: "school",
        component: () => import("@/pages/school/index.vue"),
      },
      {
        path: "/document",
        name: "document",
        component: () => import("@/pages/school/document/index.vue"),
      },
      {
        path: "/uploadLog",
        name: "uploadLog",
        component: () => import("@/pages/system/logs/index.vue"),
      },
      {
        path: "/operaLog",
        name: "operaLog",
        component: () => import("@/pages/system/sysOperaLog.vue"),
      },
      {
        path: "/school/manager/workstand",
        name: "workstand",
        component: () => import("@/pages/school/workstand.vue"),
      },
      {
        path: "/school/manager/classes",
        name: "schoolClasses",
        component: () => import("@/pages/school/classes/index.vue"),
      },
      {
        path: "/school/manager/student",
        name: "schoolStudent",
        component: () => import("@/pages/school/student/index.vue"),
      },
      {
        path: "/project",
        name: "project",
        component: () => import("@/pages/health/project.vue"),
      },
      {
        path: "/scoreStandard",
        name: "scoreStandard",
        component: () => import("@/pages/health/ScoreStandard.vue"),
      },
      {
        path: "/plan/apply",
        name: "planApply",
        component: () => import("@/pages/exam/apply.vue"),
      },
      {
        path: "/plan/reservation",
        name: "planReservation",
        component: () => import("@/pages/plan/reservation.vue"),
      },
      {
        path: "/plan/arrange",
        name: "planArrange",
        component: () => import("@/pages/exam/arrange.vue"),
      },
      {
        path: "/planFreeApply",
        name: "planFreeApply",
        component: () => import("@/pages/plan/freeApply.vue"),
      },
      {
        path: "/plan/checkin",
        name: "planCheckIn",
        component: () => import("@/pages/exam/checkin.vue"),
      },
      {
        path: "/plan/publicity",
        name: "planPublicity",
        component: () => import("@/pages/exam/publicity.vue"),
      },
      {
        path: "/plan/health/publicity",
        name: "healthPublicity",
        component: () => import("@/pages/health/publicity.vue"),
      },
      {
        path: "/plan/arbitrate",
        name: "applyForArbitration",
        component: () => import("@/pages/exam/arbitrate.vue"),
      },
      {
        path: "/plan/scoreTemp",
        name: "scoreTemp",
        component: () => import("@/pages/exam/scoreTemp.vue"),
      },
      {
        path: "/plan/videoConfig",
        name: "videoConfig",
        component: () => import("@/pages/exam/videoConfig.vue"),
      },
      {
        path: "/plan/reviewForArbitration",
        name: "reviewForArbitration",
        component: () => import("@/pages/exam/reviewForArbitration.vue"),
      },
      {
        path: "/plan",
        name: "plan",
        component: () => import("@/pages/plan/index.vue"),
      },
      {
        path: "/examPlan",
        name: "examPlan",
        component: () => import("@/pages/exam/plan.vue"),
      },
      {
        path: "/user",
        name: "user",
        component: () => import("@/pages/user/index.vue"),
      },
      {
        path: "/role",
        name: "role",
        component: () => import("@/pages/role/index.vue"),
      },
      {
        path: "/plan/manager",
        name: "planManager",
        component: () => import("@/pages/plan/manager.vue"),
      },
      {
        path: "/plan/student",
        name: "planStudent",
        component: () => import("@/pages/plan/student/index.vue"),
      },
      {
        path: "/school/student/admissionTicket",
        name: "AdmissionTicket",
        component: () => import("@/pages/school/student/AdmissionTicket.vue"),
      },
      {
        path: "/plan/result",
        name: "planResult",
        component: () => import("@/pages/plan/result/index.vue"),
      },
      {
        path: "/plan/summary",
        name: "planSummary",
        component: () => import("@/pages/plan/result/summary.vue"),
      },
      {
        path: "/plan/summaryScore",
        name: "planSummaryScore",
        component: () => import("@/pages/plan/result/summaryScore.vue"),
      },
    ],
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
